//background.js
function BackFundo(file, size_x, size_y, position_x, position_y)
{
	this.img = new Image();
	this.img.src =file;
	this.visible = true
	
	this.size_x = size_y;
    this.size_y = size_x;
    this.position_x = position_x;
    this.position_y = position_y;
        
    this.update=function()
    {
    
    	//this.position_x += this.velocity_x;
    	
    	//this.position_y += this.velocity_y;
    	
    	//if(this.position_y >= 0)
    	//{
    		//this.position_y = SCREENHEIGHT - this.size_y;
    	//}
    	
    };
    
    this.draw=function()
    {
	console.log("kjyfhrdg");
    	if(this.visible)
    	screen.drawImage(this.img, this.position_x, this.position_y);
    };
    
     
    
 
 }